package com.chengzhi.controller;

import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;


/**
 * @author ruanchengzhi
 * @description:
 * @date 2019/9/24 15:34
 */
@RestController
public class ServiceTwoController {

    @GetMapping("/hello")
    public String gzipTest() {
        return "hello";
    }

    @PostMapping(value = "/upload", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
    public String upload(MultipartFile file) {
        return null;
    }

    @PostMapping(value = "/batchUpload", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
    public String batchUpload(MultipartFile[] files) {
        return null;
    }

}
